<template>
  <div id="meta2d">
  </div>
</template>

<script setup name="Test">
const {proxy} = getCurrentInstance();

import { Meta2d } from '@meta2d/core';
import data from './test.json'
import dataTwo from './shwprocess.json'

onMounted(() => {
  const meta2d = new Meta2d('meta2d');

  meta2d.open(JSON.parse(JSON.stringify(dataTwo)));
  // meta2d.connectWebsocket("http://127.0.0.1:8085/webSocket/3");
  meta2d.connectWebsocket("ws://127.0.0.1:8085/screen/3");
});
</script>

<style scoped>
#meta2d {
  width: 100%;
  height: 800px;
}
</style>
